package com.songlanyun.modules.singlegoods.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.drive.ValueObject;
import com.songlanyun.modules.account.entity.UserInfoEntity;
import com.songlanyun.modules.account.service.UserInfoService;
import com.songlanyun.modules.goods.entity.Goods;
import com.songlanyun.modules.goods.service.GoodsService;
import com.songlanyun.modules.rabbitmq.util.SpringContextUtil;
import com.songlanyun.modules.singlegoods.entity.ProductSingleGoodsEntity;
import com.songlanyun.modules.singlegoods.service.ProductSingleGoodsService;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;
import java.util.Date;

/**
 * 库存不足记录表
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-03-18 15:09:05
 */
@Data
public class UnderStockRecordDTO implements ValueObject {

    /**
     * 商家id
     */
    @NotNull(message = "商家不能为空")
    private Long shopId;
    /**
     * 商品id
     */
    @NotNull(message = "商品不能为空")
    private Long goodsId;

    /**
     * 库存不足的单品id
     */
    @NotNull(message = "单品不能为空")
    private Long singleGoodsId;

    /**
     * sku
     */
    @NotNull(message = "sku不能为空")
    private String skuSetName;
    /**
     * 购买数量
     */
    @NotNull(message = "购买数量不能为空")
    private Integer buyNum;
    /**
     * 单品剩余数量
     */
    private Integer singleGoodsNum;

}
